<?php if(!defined('PATH_HD'))exit;
$db->exe("DROP TABLE IF EXISTS `hd_node`");
$db->exe("CREATE TABLE `hd_node` (
  `nid` int(11) NOT NULL AUTO_INCREMENT,
  `name` char(30) NOT NULL COMMENT '节点名称',
  `title` varchar(45) NOT NULL COMMENT '中文标题',
  `state` tinyint(1) NOT NULL COMMENT '是否开启节点',
  `des` char(200) NOT NULL COMMENT '节点中文描述',
  `sort` smallint(6) NOT NULL COMMENT '节点排序',
  `pid` smallint(6) NOT NULL COMMENT '父节点',
  `level` tinyint(1) NOT NULL COMMENT '节点等级',
  PRIMARY KEY (`nid`),
  KEY `level` (`level`),
  KEY `state` (`state`),
  KEY `pid` (`pid`),
  KEY `name` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='节点表\n'");

?>